package com.coder4j;


import com.coder4j.starter.generator.service.GeneratorService;
import com.coder4j.starter.generator.vo.TableParams;
import org.junit.jupiter.api.Test;
import org.springframework.beans.BeanUtils;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@SpringBootTest
public class ApplicationTest {

    @Resource
    private GeneratorService service;

//    @Test
    public void createAllWithBaseEntity(){
        //D:\Projects\wangteng\tongji\keller-server\src\main\java\com\coder4j
        String templatePath = "D:\\Projects\\my\\my-spring-helper\\template";
        String javaPath = "D:\\Projects\\my\\my-spring-helper\\keller-server\\src\\main\\java\\com\\coder4j\\biz";
        String vuePath = "D:\\Projects\\my\\my-spring-helper\\keller_web\\src";
        String author = "keller";
        TableParams tableParams = new TableParams(templatePath,javaPath,vuePath,author);
        tableParams.initTables(
                "tbl_wechat_link:WechatLink"
        );
        service.createJavaAndVue(tableParams);
    }
}
